# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'thumbnail_widget.ui'
#
#      by: pyside-uic 0.2.15 running on PySide 1.2.2
#
# WARNING! All changes made in this file will be lost!

from qtpy import QtCore, QtWidgets, QtGui
import smart_icons

class Ui_ThumbnailWidget(object):
    def setupUi(self, ThumbnailWidget):
        ThumbnailWidget.setObjectName("ThumbnailWidget")
        ThumbnailWidget.resize(347, 266)
        ThumbnailWidget.setStyleSheet("")
        self.thumbnail = QtWidgets.QLabel(ThumbnailWidget)
        self.thumbnail.setGeometry(QtCore.QRect(210, 190, 81, 61))
        self.thumbnail.setMinimumSize(QtCore.QSize(0, 0))
        self.thumbnail.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.thumbnail.setStyleSheet("")
        self.thumbnail.setText("")
        self.thumbnail.setScaledContents(False)
        self.thumbnail.setAlignment(QtCore.Qt.AlignCenter)
        self.thumbnail.setObjectName("thumbnail")
        self.buttons_frame = QtWidgets.QFrame(ThumbnailWidget)
        self.buttons_frame.setGeometry(QtCore.QRect(40, 30, 211, 191))
#         self.buttons_frame.setStyleSheet("#buttons_frame {\n"
# "border-radius: 2px;\n"
# "background-color: rgba(0,0,0, 64);\n"
# "}")
#         # self.buttons_frame.setFrameShape(QtWidgets.QFrame.NoFrame)
#         # self.buttons_frame.setFrameShadow(QtWidgets.QFrame.Plain)
        self.buttons_frame.setLineWidth(0)
        self.buttons_frame.setProperty('need_border', True)
        self.buttons_frame.setObjectName("buttons_frame")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.buttons_frame)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        spacerItem = QtWidgets.QSpacerItem(20, 52, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        spacerItem1 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.camera_btn = QtWidgets.QPushButton(self.buttons_frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.camera_btn.sizePolicy().hasHeightForWidth())
        self.camera_btn.setSizePolicy(sizePolicy)
        self.camera_btn.setMinimumSize(QtCore.QSize(64, 64))
        self.camera_btn.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.camera_btn.setCursor(QtCore.Qt.PointingHandCursor)
        self.camera_btn.setStyleSheet("#camera_btn {\n"
"    background-color: rgba( 0, 0, 0, 0 );\n"
"    image: url(:/smart/camera_normal.png);\n"
"    margin: 5px;\n"
"    border: none;\n"
"}\n"
"#camera_btn:hover {\n"
"    image: url(:/smart/camera_hover.png);\n"
"}\n"
"#camera_btn:focus:pressed {\n"
"    image: url(:/smart/camera_active.png);\n"
"}\n"
"\n"
"")
        self.camera_btn.setText("")
        self.camera_btn.setIconSize(QtCore.QSize(64, 64))
        self.camera_btn.setFlat(True)
        self.camera_btn.setObjectName("camera_btn")
        self.horizontalLayout_2.addWidget(self.camera_btn)
        spacerItem2 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem2)
        self.horizontalLayout_2.setStretch(0, 1)
        self.horizontalLayout_2.setStretch(1, 2)
        self.horizontalLayout_2.setStretch(2, 1)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        spacerItem3 = QtWidgets.QSpacerItem(20, 51, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem3)
        self.verticalLayout_2.setStretch(0, 1)
        self.verticalLayout_2.setStretch(1, 2)
        self.verticalLayout_2.setStretch(2, 1)

        self.retranslateUi(ThumbnailWidget)
        QtCore.QMetaObject.connectSlotsByName(ThumbnailWidget)

    def retranslateUi(self, ThumbnailWidget):
        ThumbnailWidget.setWindowTitle("Form")

